<template>
	<view class="refund-page">
		<!-- 导航栏 -->
		<free-nav-bar textContent="退款" isBackShow></free-nav-bar>
		<view class="refund-wrapper">
			<view class="refund__top">
				<view class="refund__top--info flex">
					<view class="user__info flex">
						<text class="main-text-color name">张三</text>
						<text class="main-text-color phone">17422584521</text>
					</view>
				</view>
				<view class="refund__top--address flex">
					<i class="sprite sprite-post"></i>
					<text class="address__text main-text-color font28">广东省深圳市南山区桃源街道平山村平山村110栋生活驿站便利店</text>
				</view>
			</view>
			<view class="refund__product">
				<view class="refund__product--item flex">
					<view class="refund__product--img"></view>
					<view class="refund__product--info">
						<view class="info-warpper">
							<text class="title main-text-color font28">广西田东金煌芒新品装</text>
							<text class="text__info">规格：大果5斤</text>
						</view>
						<view class="refund__product--price flex">
							<text class="price"><span class="symbol">￥</span>75.9</text>
							<text class="num main-text-color font28">*1</text>
						</view>
					</view>
				</view>
				<view class="refund__product--item flex">
					<view class="refund__product--img"></view>
					<view class="refund__product--info">
						<view class="info-warpper">
							<text class="title main-text-color font28">广西田东金煌芒新品装</text>
							<text class="text__info">规格：大果5斤</text>
						</view>
						<view class="refund__product--price flex">
							<text class="price"><span class="symbol">￥</span>75.9</text>
							<text class="num main-text-color font28">*1</text>
						</view>
					</view>
				</view>
			</view>
			<view class="refund__total">
				<view class="refund__total--item flex">
					<span class="tit font28">商品总额</span>
					<span class="val"> <em class="symbol">￥</em>75.9</span>
				</view>
				<view class="refund__total--item flex">
					<span class="tit font28">运费</span>
					<span class="val"> <em class="symbol">￥</em>0.00</span>
				</view>
				<view class="refund__total--item flex">
					<span class="tit font28">实付款：</span>
					<span class="val"> <em class="symbol">￥</em>75.9</span>
				</view>
			</view>
			<view class="refund__order">
				<view class="refund__order--item flex">
					<span class="name font28">订单编号</span>
					<span class="val main-text-color font28">29687154784</span>
				</view>
				<view class="refund__order--item flex">
					<span class="name font28">交易流水号</span>
					<span class="val main-text-color font28">2023-05-10 10:20:30</span>
				</view>
				<view class="refund__order--item flex">
					<span class="name font28">下单时间</span>
					<span class="val main-text-color font28">29687154784</span>
				</view>
				<view class="refund__order--item flex">
					<span class="name font28">付款时间</span>
					<span class="val main-text-color font28">2023-05-10 10:20:30</span>
				</view>
			</view>
			<view class="refund__info">
				<view class="refund__info--item flex">
					<span class="name font28">申请理由</span>
					<span class="val main-text-color font28">大部分坏了不能吃了。。。</span>
				</view>
				<view class="refund__info--item refund__info--img">
					<span class="name font28">图片</span>
					<view class="img-list">
						<span class="img"></span>
						<span class="img"></span>
					</view>
					
				</view>
				<view class="refund__info--item flex">
					<span class="name font28">申请类型</span>
					<span class="val main-text-color font28">补发</span>
				</view>
				<view class="refund__info--item flex">
					<span class="name font28">退款金额</span>
					<span class="val main-text-color font28"><em class="symbol">￥</em>75.9</span>
				</view>
			</view>
		</view>
		<view class="refund__btns">
			<a href="javascript:;" class="btns font28">退款</a>
		</view>
	</view>
</template>

<script>
	import $H from '@/common/free-lib/request.js';
	import freeNavBar from "@/components/free-ui/free-nav-bar.vue"
	export default {
		components: {
			freeNavBar
		},
		data() {
			return {
			}
		},
		created() {
			
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.refund-page {
		padding-bottom: 120rpx;
		.refund__top {
			padding: 30rpx;
			padding-bottom: 24rpx;
			background: #fff;
			
			.refund__top--info {
				height: 42rpx;
				justify-content: space-between;
				align-items: center;
				padding-left: 34rpx;
				
				.name,.phone {
					font-size: 30rpx;
					font-weight: bold;
				}
				.phone {
					margin-left: 30rpx;
				}
			}
			.refund__top--address {
				position: relative;
				padding-left: 34rpx;
				margin-top: 14rpx;
				.sprite {
					position: absolute;
					top: 4rpx;
					left: 0;
				}
				.address__text {
					line-height: 40rpx;
				}
			}
			.sprite {
				display: block;
			}
		}
		.refund__product {
			margin-top: 16rpx;
			margin-bottom: 16rpx;
			background: #fff;
			padding: 20rpx 30rpx;
			
			.refund__product--item {
				width: 100%;
				border-bottom: 1px solid #EBEBEB;
				padding-bottom: 20rpx;
				margin-bottom: 20rpx;
				
				&:last-child {
					border-bottom: none;
					padding-bottom: 0rpx;
					margin-bottom: 20rpx;
				}
			}
			
			.refund__product--img {
				width: 180rpx;
				height: 180rpx;
				background: pink;
			}
			.refund__product--info {
				position: relative;
				margin-left: 14rpx;
				flex: 1;
				
				.title {
					display: block;
					line-height: 40rpx;
				}
				
				.text__info {
					margin-top: 10rpx;
					font-size: 24rpx;
					line-height: 33rpx;
					color: #666666;
				}
				.refund__product--price {
					position: absolute;
					bottom: 0;
					left: 0;
					height: 48rpx;
					width: 100%;
					align-items: center;
					justify-content: space-between;
					
					.price {
						font-size: 34rpx;
						font-weight: bold;
						color: #FD5052;
						
						.symbol {
							font-size: 24rpx;
							font-weight: normal;
						}
					}
				}
			}
		}
		.refund__total {
			margin: 16rpx 0 ;
			background: #fff;
			padding: 30rpx;
			
			.refund__total--item{
				height: 48rpx;
				line-height: 48rpx;
				margin-bottom: 30rpx;
				justify-content: space-between;
				
				&:last-child {
					margin-bottom: 0;
					justify-content: flex-end;
				}
				
				span {
					color: #666;
				}
				.val {
					color: #FD5052;
					font-size: 34rpx;
					font-weight: bold;
					
					.symbol {
						font-size: 24rpx;
						font-weight: normal;
					}
				}
			}
		}
		.refund__order{
			padding: 30rpx;
			background: #fff;
			
			.refund__order--item {
				height: 40rpx;
				line-height: 40rpx;
				margin-bottom: 30rpx;
				justify-content: space-between;
				
				&:last-child {
					margin-bottom: 0;
				}
			}
			
			span.name {
				color: #666;
			}
		}
		.refund__info {
			background: #fff;
			margin-top: 16rpx;
			
			.refund__info--item {
				height: 88rpx;
				line-height: 88rpx;
				border-bottom: 1px solid #EBEBEB;
				padding: 0 30rpx;
				justify-content: space-between;
				
				&:last-child {
					border-bottom: none;
					
					.val {
						color: #FD5052;
						font-size: 34rpx;
						font-weight: bold;
						
						.symbol {
							font-size: 24rpx;
							font-weight: normal;
						}
					}
				}
				
				.name {
					color: #666666;
				}
			}
			
			.refund__info--img {
				height: auto;
				padding-bottom: 30rpx;
				.name {
					display: block;
					height: 80rpx;
					line-height: 80rpx;
				}
				.img-list {
					overflow: hidden;
					
					.img {
						width: 50%;
						min-height: 230rpx;
						float: left;
						padding-right: 8rpx;
						
						&:nth-child(2n) {
							padding-right: 0;
							padding-left: 8rpx;
						}
						&:nth-child(n+2) {
							margin-top: 16rpx;
						}
						
						img {
							border-radius: 8rpx;
							display: block;
							max-height: 230rpx;
						}
					}
				}
			}
		}
		.refund__btns {
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			height: 90rpx;
			padding: 8rpx 30rpx;
			background: #fff;
			
			.btns {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 100%;
				height: 100%;
				border-radius: 200px;
				background: #FD5052;
				color: #fff;
				text-decoration: none;
			}
		}
	}
</style>
